package com.qk.management.mapper;

import com.qk.domain.UserDO;
import com.qk.dto.UserDTO;
import com.qk.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 
 * @author 上官徵羽
 * @version 1.0
 * @since 2025-10-08 15:50
 */
@Mapper
public interface UserMapper {
    List<UserDO> listPage(UserDTO userDTO);

    void deleteByList(List<Integer> ids);

    void addUser(User user);

    User getById(Integer id);

    void updateById(User user);

    List<UserDO> listAll();

    List<User> listByRole(String label);

    List<User> listByDept(Integer deptId);

    List<Map<String, Object>> getMap(String name,@Param("ids") List<Integer> ids);
}
